{// 引入标签库 }

<tagLib name="fanwe" />

<include file="Public:header" />

<load href="__TMPL__ThemeFiles/Js/jquery.js" />

<script type="text/javascript" src="__TMPL__ThemeFiles/Js/calendar.php?lang=zh-cn" ></script>

<load href='__TMPL__ThemeFiles/Js/calendar/calendar.css' />

<load href="__TMPL__ThemeFiles/Js/model.js" />

<div id="main" class="main" >

<div class="content">

<div class="title">{$Think.lang.ADD_DATA} [ <a href="{:u($module_name.'/index')}">{$Think.lang.BACK_LIST}</a> ]</div>

<div id="result" class="result none"></div>

<form method='post' id="form" name="form" action="{:u('GoodsBond/update')}"  enctype="multipart/form-data">

<table cellpadding=0 cellspacing=0 width=100% class="role_table" >

<tr>

	<td class="tRight" width="150">团购商品：</td>

	<td class="tLeft" >

		<if condition="$vo.site_name neq ''">【{$vo.site_name}<if condition="$vo.city neq ''">&nbsp;{$vo.city}</if>】</if>{$vo.name}

		<input type="hidden" value="{$goods_id}" name="goods_id" />

	</td>

</tr>

<tr>

	<td class="tRight" width="150">兑换订单：</td>

	<td class="tLeft" >

		<input type="text" name="order_sn" class="bLeft" value="{$vo.order_sn}" />

	</td>

</tr>

<tr>

	<td class="tRight" width="150">兑换用户：</td>

	<td class="tLeft" >

		<select id="userIDs" name="user_id">

			<if condition="$vo.user_id gt 0">

			<option value="{$vo.user_id}">{$vo.user_name}</option>

			<else/>

			<option value="">请先搜索用户生成选项列表</option>

			</if>

		</select>

		<input type="text" id="userKey" class="bLeft" style="width:100px;" />&nbsp;

		<input type="button" id="userSearch" value="搜索"  onclick="$.searchUser('#userKey','#userIDs',0);"/>

	</td>

</tr>

<tr>

	<td class="tRight" width="150">序列号：</td>

	<td class="tLeft" >

		<input type="text" name="sn" class="bLeftRequire" value="{$vo.sn}" />

	</td>

</tr>

<tr>

	<td class="tRight" width="150">密码：</td>

	<td class="tLeft" >

		<input type="text" name="password" class="bLeft" value="{$vo.password}" />&nbsp;可为空

	</td>

</tr>

<tr>

	<td class="tRight">兑换时间：</td>

	<td class="tLeft" >

		<input type="text" name="send_time" id="send_time"  class="bLeft" value="{$vo.send_time|toDate}">

		<input type="button" name="btn_send_time" id="btn_send_time" onclick="return showCalendar('send_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_send_time');" value="{$Think.lang.SELECT}" class="button"/>

	</td>

</tr>

<tr>

	<td>&nbsp;</td>

	<td class="center">

	<input type="hidden" value="{$vo.id}" name="id" />

	<input type="submit" value="{$Think.lang.SAVE_DATA}"  class="button small"> <input type="reset" class="button small" onclick="resetEditor()" value="{$Think.lang.RESET_DATA}" ></td>

</tr>

</form>

</table>

</div>

</div>

